home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13419 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.unix.programmer,comp.lang.c
  4. Subject: Re: Applying file masks in UNIX using C/C++
  5. Date: 6 Apr 1996 21:04:24 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4k7icoINNp4c@keats.ugrad.cs.ubc.ca>
  8. References: <31618AFE.5476@netrover.com> <m1g2akuyph.fsf@pippin.jblhome.ping.dk>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <m1g2akuyph.fsf@pippin.jblhome.ping.dk>,
  12. Jacob Lorensen <jacob@jblhome.ping.dk> wrote:
  13.  >>>>>> "Stephane" == Stephane Charette <charrick@netrover.com> writes:
  14.  >
  15.  >    Stephane> This is a long shot...but...does anyone know of the
  16.  >    Stephane> existence of public domain C/C++ code which will apply a
  17.  >    Stephane> file mask to an existing filename and return a TRUE or
  18.  >    Stephane> FALSE response?
  19.  >
  20.  >How about this?
  21.  >
  22.  >   WILDMAT(3)                                             WILDMAT(3)
  23.  >
  24.  >
  25.  >   NAME
  26.  >      wildmat - perform shell-style wildcard matching
  27.  >
  28.  >   SYNOPSIS
  29.  >      int
  30.  >      wildmat(text, pattern)
  31.  >          char       *text;
  32.  >          char       *pattern;
  33.  
  34. FYI, there is a POSIX.2 standard function called glob() for doing this.
  35. I've never even heard of wildmat! I have checked three different major UNIX
  36. OS's and none of them have it in their man page roster.
  37.  
  38. glob() and globfree() are also defined by the X/Open Portability Guide 4
  39. (XPG4).
  40. -- 
  41.  
  42.